package com.gdufs.secondhandwebsite.service.impl;

import com.gdufs.secondhandwebsite.dao.GoodsTypeMapper;
import com.gdufs.secondhandwebsite.entity.GoodsType;
import com.gdufs.secondhandwebsite.service.GoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsTypeServiceImpl implements GoodsTypeService {
    @Autowired
    GoodsTypeMapper goodsTypeMapper;
    public List<String> getGoodsTypeGroups(){
        return  goodsTypeMapper.getGoodsTypeGroups();
    }
    public List<GoodsType> getGoodsTypeNamesByGroupName(String groupname){
        return  goodsTypeMapper.getGoodsTypeNamesByGroupName(groupname);
    }

}
